#include "golf.h"
#include <string>
#include <iostream>

void setgolf(golf& g, const char* name, int hc)
{
    strcpy_s(g.fullname,Len, name);
    g.handicap = hc;
}

int setgolf(golf& g)
{
    std::string name;
    getline(std::cin,name);
    int hc=0;
    std::cin >> hc;
    if (name[0] == '\n')
    {
        return 0;
    }
    else
    {
        setgolf(g, name.c_str(), hc);
        return 1;
    }
}

void handicap(golf& g, int hc)
{
    g.handicap = hc;
}

void showgolf(const golf& g)
{
    std::cout << g.fullname << std::endl;
    std::cout << g.handicap << std::endl;
}
